﻿@model B4Deal.Models.Deal
@{
    ViewBag.Title = "CreateDeal";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<div class="heading">
    <h1>
        Creat Deal</h1>
    <div class="buttons">
        <a class="button" onclick="$('#form').attr('action', '#'); $('#form').attr('target', '_blank'); $('#form').submit();">
            Print Invoice</a> <a class="button" onclick="$('#form').attr('action', '#'); $('#form').attr('target', '_blank'); $('#form').submit();" href="@Url.Action("Deals")">
                Cancel</a>
    </div>
    <!--End Buttons-->
</div>
<!--End Heading-->
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
        <table class="form">
            <tbody>
                <tr>
                    <td class="left">
                        Tên KM :
                    </td>
                    <td class="left">
                        <div class="editor-field">
                            @Html.EditorFor(model => model.TenKM)
                            @Html.ValidationMessageFor(model => model.TenKM)
                        </div>
                    </td>
                    <td>
                        Loại KM :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.LoaiKM)
                            @Html.ValidationMessageFor(model => model.LoaiKM)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Hình ảnh :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.HinhAnh)
                            @Html.ValidationMessageFor(model => model.HinhAnh)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Đơn Giá Cũ :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.DonGiaCu)
                            @Html.ValidationMessageFor(model => model.DonGiaCu)
                        </div>
                    </td>
                    <td class="left">
                        Đơn giá mới :
                    </td>
                    <td class="left">
                        <div class="editor-field">
                            @Html.EditorFor(model => model.DonGiaMoi)
                            @Html.ValidationMessageFor(model => model.DonGiaMoi)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Hình thức giao SP :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.HinhThucGiaoSP)
                            @Html.ValidationMessageFor(model => model.HinhThucGiaoSP)
                        </div>
                    </td>
                    <td class="left">
                        Tình trạng :
                    </td>
                    <td class="left">
                        <div class="editor-field">
                            @Html.EditorFor(model => model.TinhTrang)
                            @Html.ValidationMessageFor(model => model.TinhTrang)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Ngày bắt đầu :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.BatDauKM)
                            @Html.ValidationMessageFor(model => model.BatDauKM)
                        </div>
                    </td>
                    <td>
                        Ngày kết thúc :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.KetThucKM)
                            @Html.ValidationMessageFor(model => model.KetThucKM)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mô tả :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.MoTa)
                            @Html.ValidationMessageFor(model => model.MoTa)
                        </div>
                    </td>
                    <td>
                        Đặc điểm nổi bật :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.DacDiemNoiBat)
                            @Html.ValidationMessageFor(model => model.DacDiemNoiBat)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Điều kiện sử dụng :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.DkSuDung)
                            @Html.ValidationMessageFor(model => model.DkSuDung)
                        </div>
                    </td>
                    <td>
                        Giới thiệu chi tiết :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.GioiThieuChiTiet)
                            @Html.ValidationMessageFor(model => model.GioiThieuChiTiet)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mã DN :
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.MaDN)
                            @Html.ValidationMessageFor(model => model.MaDN)
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
